-- GENERATED SPELL FOR [Irondeep Trogg] --


function spell0_10987(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(14516,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10987', 642, 1)
end

function Sorts_10987(pUnit, Event)
local choix_sorts_10987 = math.random(0, 0)
if choix_sorts_10987 == 0 then
pUnit:RegisterEvent('spell0_10987', 1, 1)
end
end

function mob10987_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10987', math.random(1500, 3000), 1)
end

function mob10987_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10987_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10987_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10987, 1, 'mob10987_Action')
RegisterUnitEvent(10987, 2, 'mob10987_Leave')
RegisterUnitEvent(10987, 3, 'mob10987_Kill')
RegisterUnitEvent(10987, 4, 'mob10987_Die')
